﻿using Newtonsoft.Json.Linq;
using System.Collections.Generic;

namespace Core.DataAccess.ApiJson.SearchServiceProviders
{
    public class SearchResult
    {
        public string _scroll_id { get; set; }
        public int Took { get; set; }
        public bool Timed_out { get; set; }
        public Shards _shards { get; set; }
        public HitsObject Hits { get; set; }
        public bool IsSuccess { get; set; }
        public string Description { get; set; }
    }

    public class Shards
    {
        public int Total { get; set; }
        public int Successful { get; set; }
        public int Skipped { get; set; }
        public int Failed { get; set; }
    }

    public class HitsObject
    {
        public Total Total { get; set; }
        public string max_score { get; set; }
        public List<HitData> Hits { get; set; }
    }

    public class Total
    {
        public int Value { get; set; }
        public string Relation { get; set; }
    }

    public class HitData
    {
        public string _index { get; set; }
        public string _type { get; set; }
        public string _id { get; set; }
        public string _score { get; set; }
        public JObject _source { get; set; }
        public List<float> sort { get; set; }
    }

}
